/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Test;

import Bean.Konsumen;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Yohanes Beny P
 */
public class tesInsertKonsumen {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Konsumen kns = new Konsumen();
        kns.setAlmt_penerima("yogya");
        kns.setAlmt_pengirim("semarang");
        kns.setId("1");
        kns.setNama_penerima("budi");
        kns.setNama_pengirim("sisi");
        kns.setNo_resi("1234");
        kns.setTlp_pengirim("123");
        try {
            kns.terimaKonsumen(kns);
        } catch (SQLException ex) {
            Logger.getLogger(tesInsertKonsumen.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
